package com.zhangyj.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import java.util.Set;

import com.zhangyj.entitis.Role;



public interface RoleDao {
	public List<?> getList() throws SQLException;

	public Set<Integer> getUserRole(int userid) throws SQLException;
	public void setUserRole(int userid, int[] roleids) throws SQLException;
	public void delUserRole(int userid,Connection conn) throws SQLException;
	public int getActions(int userId, int functionId) throws SQLException;
	public void addRole(Role role) throws SQLException;
	public void editRole(Role role) throws SQLException;
	public void delRole(int roleid) throws SQLException;
}
